package com.bracketbird.client.gui.club.tournament.rtc;


import com.bracketbird.client.gui.club.tournament.*;
import com.bracketbird.client.model.tournament.*;
import com.bracketbird.clientcore.gui.*;
import com.bracketbird.clientcore.style.*;
import com.bracketbird.clientcore.util.*;

/**
 *
 */
public class LevelMatchesLayedOutPanel extends VerticalComponent {

    private TournamentLevel level;

    public LevelMatchesLayedOutPanel(TournamentLevel tl) {
        super();
        this.level = tl;
        init();
    }

    private void init() {
        VerticalFocusManager vf = new VerticalFocusManager();
        boolean firstRound = true;

        for (Round round : level.getRounds()) {
            add(new RoundPanel(vf, round, firstRound), new TextLayout(10, 0, 10, 0, null, "100%"));
            if (firstRound) {
                firstRound = false;
            }
        }
    }


}
